package com.allenlee.mvphelper;

import android.annotation.SuppressLint;
import android.app.Application;
import android.content.Context;

import com.qmuiteam.qmui.arch.QMUISwipeBackActivityManager;

import androidx.multidex.MultiDex;

/**
 * @author : lifei
 * 创建时间： 19-11-26
 * 更改时间： 19-11-26
 * Email : allen.lee723@qq.com
 * @version :
 * Description：
 */
public class MHApplication extends Application {

    @SuppressLint("StaticFieldLeak")
    private static Context context;

    public static Context getContext() {
        return context;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        // 初始化 MultiDex
        MultiDex.install(this);
        context = getApplicationContext();
        QMUISwipeBackActivityManager.init(this);
    }
}